package com.example.design.a.factory.domain.car;

import com.example.design.a.factory.domain.Product;
import lombok.*;

/**
 * 汽车父类
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Car extends Product {
    /**
     * 产品名称
     */
    private String name;
    /**
     * 产品颜色
     */
    private String color;

    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
